If there's a page called home.jsp under the 'agent' namspace, using

<ww:url namespace="agent" action="myAction" />

would generate

http://<host>:<port>/<context>/agent/agent/myAction.action

WebWork (DefaultActionMapper) needs namespace to start with slash '/'

<ww:url namespace="/agent" action="myAction" />

should generate the desired url

http://<host>:<port>/<context>/agent/myAction.action